package com.michael.demo.springcloud.alibaba.seata.upms.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.michael.demo.springcloud.alibaba.seata.upms.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 类功能描述:
 * <pre>
 *   xxxx
 * </pre>
 *
 * @author Michael
 * @version 1.0
 * @date 2021/04/01 16:47
 */
@Mapper
public interface AccountMapper extends BaseMapper<Account> {

    int deductByUserId(@Param("userId") Long userId, @Param("money") Integer money);
}
